<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/simditor-2.3.23/styles/simditor.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/simditor-2.3.23/site/assets/scripts/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/simditor-2.3.23/site/assets/scripts/module.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/simditor-2.3.23/site/assets/scripts/hotkeys.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/simditor-2.3.23/site/assets/scripts/simditor.js"></script>
<script type="text/javascript">
$(function(){
	Simditor.locale = 'zh-CN';
	var editor = new Simditor({textarea: $('#editor')});
});
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加留言</title>
</head>
<body>
	<h1>请输入留言内容</h1>
	<form action="${pageContext.request.contextPath}/MessageServlet" method="post">
		<table>
			<tr>
				<td>主题：</td>
				<td><input type="text" name="title"></td>
			</tr>
			<tr>
				<td>内容：</td>
				<td><textarea rows="10" cols="80" name="content" id="editor" placeholder="这里输入内容"></textarea></td>
			</tr>
			<tr>
				<td><input name="submittype" type="submit" value="添加留言"/></td>
				<td><input name="submittype" type="reset" value="重置"/></td>
			</tr>
		</table>
	</form>
	<a href="${pageContext.request.contextPath}/MessageServlet?submittype=show">返回</a>
</body>
</html>